<template>
  <nav>
    <router-link to="/">商品</router-link>
    <router-link to="/about">购物车</router-link>
  </nav>
  <router-view />
</template>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #333; /* 更高级的文本颜色 */
  background-color: #f9f9f9; /* 背景色 */
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 20px;
  background-color: #444; /* 导航栏背景色 */
  padding: 10px 0;

  a {
    font-weight: bold;
    color: #fff; /* 导航链接颜色 */
    list-style: none;
    text-decoration: none;
    &.router-link-exact-active {
      color: #ff6b6b; /* 激活链接颜色 */
    }
  }
}
#app {
  font-family: 'Open Sans', sans-serif; /* 更高级的字体 */
  font-size: 16px;
  line-height: 1.6;
}
#app {
  font-family: 'Open Sans', sans-serif; /* 更高级的字体 */
  font-size: 16px;
  line-height: 1.6;
}
</style>